package com.gezi.admin.module.sys.dict.dict.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * @Author 格子代码
 * @createDate 2024/2/10 09:00
 * @contact 1424529270@qq.com
 */
@Data
public class AppDictAddParamModel{

    @NotBlank(message = "标识不能为空")
    @Size(min = 1,max = 100,message = "标识长度不正确")
    @ApiModelProperty(value = "标识")
    private String type;

    @NotBlank(message = "名称不能为空")
    @Size(min = 1,max = 200,message = "名称长度不正确")
    @ApiModelProperty(value = "名称")
    private String name;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "启用，禁用")
    private Boolean state;
}